package com.example.kuaizu.mapper;

import com.example.kuaizu.pojo.dto.MajorCountObject;
import com.example.kuaizu.pojo.ov.SchoolMajorCount;
import kuaizu.common.tablepojo.School;
import com.example.kuaizu.pojo.dto.SchoolCountObject;
import com.example.kuaizu.pojo.ov.UserProofOv;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SchoolMapper {

    //查询制定学校的注册人数
    List<SchoolCountObject> getSchoolRegisterCount();

    //查询指定id的学校
    School selectSchoolNameBySchoolId(Integer id);
    //根据学校id查询对应的用户信息
    List<UserProofOv> selectBySchoolIdFromUserInfo(Integer schoolId);

    List<SchoolMajorCount> getMajorBySchoolId(Integer schoolId);

    List<MajorCountObject> getMajorRegisterCount();
}
